//app.js
App({
  onLaunch: function() {
    var userInfo = wx.getStorageSync("userInfo") || []
    if (userInfo.length!=0){
    //  console.log(userInfo)
      this.globalData.userToken = userInfo. userToken
      this.globalData.userName = userInfo.userName
      this.globalData.loginStauts = userInfo.loginStauts
      this.globalData.avatarUrl = userInfo.avatarUrl
      this.globalData.userType = userInfo.userType
      this.globalData.doctorToken = userInfo.doctorToken
      this.globalData.managerToken = userInfo.managerToken
    }
  },
  onShow(){
   
  },
  getUserInfo: function() {
    console.log("app.js")
  },
  globalData: {
    loginStauts:false,
    userToken:'',
    userType: 'user',
    userName: "",//用户名字
    avatarUrl:'',//用户头像
    doctorToken:'',//医生headers参数
    managerToken: '',//管理员的headers参数
  }
})